package com.kyl.service.impl;


import com.kyl.mapper.ReservationMapper;
import com.kyl.service.ReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;

/**
 * @author WanJl
 * @version 1.0
 * @title ReservationServiceImpl
 * @description
 * @create 2025/1/15
 */
@Service
@Slf4j
public class ReservationServiceImpl implements ReservationService {

    @Resource
    private ReservationMapper reservationMapper;

    /**
     * 更新预约状态
     * @param now
     */
    @Override
    public void updateReservationStatus(LocalDateTime now) {
        int i = reservationMapper.updateReservationStatus(now);
        log.info("更新预约状态....---->{}",now);
    }
}
